home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: richb@sentor.com.au (Richard Browne)
- Newsgroups: comp.lang.c.moderated,comp.std.c
- Subject: C9X proposal for snprintf
- Date: 21 Apr 1996 12:12:27 -0500
- Organization: Sentor Communications
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4ldq9r$5gf@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- This message is a call for interest/support in a proposal to C9X for
- the inclusion of an 'snprintf' function in the C standard. Many
- compilers already provide this function, but not all.
-
- For those who aren't aware, the sprintf 'problem' is similar to the
- famous gets, where the functions do not perform overflow checking on
- the user supplied buffer.. leading to the possibility of random memory
- overwrites and corruption. snprintf is analogous to sprintf. The
- difference being that snprintf takes an extra parameter that specifies
- the sizeof the format conversion buffer, and can thus guarantee that
- the buffer will never overflow.
-
- If you support this proposal, please respond here ot to direct to my
- email address.
-
- Richard Browne.
- richb@sentor.com.au
-